<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
    <script>
      console.log(1);
      setTimeout(function () {
        console.log(3);
      }, 5000);
      console.log(2);
    </script>
  </body>
</html>